package com.chenzhou.qx.library.common.util;

/**
 * @author tk
 * @date 2019/11/18
 */
public class ClickFastUtil {

    private ClickFastUtil() {
    }

    /**
     *  判断多次点击的时间
     */
    private static long mLastClickTime;

    public static boolean isFastDoubleClick() {
        long time = System.currentTimeMillis();
        if (Math.abs(time - mLastClickTime) < 500) {
            return true;
        }
        mLastClickTime = time;
        return false;
    }

}
